home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-04-21 | 1.1 KB | 44 lines | [TEXT/MPS ] |
- # Copyright © 1994 Apple Computer, Inc. All rights reserved.
- # Drop this file in your MPW Folder
-
- if ¬ {_UserStartup•OPF_}
- set _UserStartup•OPF_ 1
- export _UserStartup•OPF_
-
- # Set the location of the OpenDoc Parts Framework Folder
- # If the folder can't be found; automatically prompts user for it and
- # remember where the folder was found
-
- if ¬ "{OPF}" && "`Exists "{ShellDirectory}"OPF_Folder`"
- Set OPF "`Catenate "{ShellDirectory}"OPF_Folder`"
- End
- if ¬ "`Exists "{ShellDirectory}"OPF_Folder`" || ¬ "`Exists "{OPF}"`"
- Set exit 0
- Set temp "{Boot}"
- Loop
- Set temp "`(GetFileName "{temp}" -q -d -m "Where is your ∂"OPF∂" folder?")≥dev:null`"
- if "{temp}"!=""
- Echo -n "{temp}" > "{ShellDirectory}"OPF_Folder
- Set OPF "{temp}"
- Else
- exit
- End
- (set x "`Exists "{temp}Framewrk:"`") ≥dev:null
- if "{x}"==""
- Alert OPF - The ∂"{temp}∂" folder does not contain OPF files.
- else
- break
- end
- End
- set exit 1
- End
-
- Set OPF "`Catenate "{ShellDirectory}"OPF_Folder`"
- Export OPF
-
- For __Startup__i in `(Files "{OPF}"Startup≈ || Set Status 0) ≥ dev:null`
- Execute "{__Startup__i}"
- End
- Unset __Startup__i
-
- End